<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>三角形计算器</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .form-container {
            max-width: 500px;
            margin: 100px auto;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .title {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="form-container">
            <h2 class="title">三角形计算器</h2>
            <form action="showTriangle.jsp" method="post">
                <div class="mb-3">
                    <label for="side1" class="form-label">第一条边长：</label>
                    <input type="number" class="form-control" id="side1" name="side1" step="0.01" min="0" required>
                </div>
                <div class="mb-3">
                    <label for="side2" class="form-label">第二条边长：</label>
                    <input type="number" class="form-control" id="side2" name="side2" step="0.01" min="0" required>
                </div>
                <div class="mb-3">
                    <label for="side3" class="form-label">第三条边长：</label>
                    <input type="number" class="form-control" id="side3" name="side3" step="0.01" min="0" required>
                </div>
                <div class="text-center">
                    <button type="submit" class="btn btn-primary">计算</button>
                    <button type="reset" class="btn btn-secondary ms-2">重置</button>
                </div>
            </form>
        </div>
    </div>
</body>
</html>